import request from '@/utils/request'
// 游戏模块

// 列表
export function getGameList(params) {
    return request({
        url: '/game/index',
        method: 'post',
        data: params
    })
}
// 添加
export function addGame(params) {
    return request({
        url: '/game/create',
        method: 'post',
        data: params
    })
}
// 删除
export function delGame(params) {
    return request({
        url: '/game/delete',
        method: 'post',
        data: params
    })
}
// 发布
export function statusGame(params) {
    return request({
        url: '/game/batch_operation',
        method: 'post',
        data: params
    })
}
// 详情
export function getGameDetail(params) {
    return request({
        url: '/game/detail',
        method: 'post',
        data: params
    })
}
// 编辑
export function editGame(params) {
    return request({
        url: '/game/update',
        method: 'post',
        data: params
    })
}
//全部游戏
export function allGame(params) {
    return request({
        url: '/game/select',
        method: 'post',
        params: params
    })
}
